package com.yike.user.service;

import com.yike.common.pagination.Paging;
import com.yike.user.param.CustomerPageParam;
import com.yike.user.param.CustomerParam;
import com.yike.user.vo.CustomerVo;

import java.util.List;

/**
 * 平台用户 服务类
 *
 * @author Sakura
 * @since 2024-10-29
 */
public interface PlatformCustomerService {

    /**
     * 保存
     *
     * @param customerParam
     * @return
     * @throws Exception
     */
    boolean saveCustomer(CustomerParam customerParam) throws Exception;

    /**
     * 修改
     *
     * @param customerParam
     * @return
     * @throws Exception
     */
    boolean updateCustomer(CustomerParam customerParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteCustomer(Long id) throws Exception;

    boolean batchDel(List<Long> ids) throws Exception;

    CustomerVo getCustomer(Long id) throws Exception;

    Paging<CustomerVo> getCustomerPageList(CustomerPageParam customerPageParam) throws Exception;

}
